﻿using Direct.IDAL;
using DirectSell.Model.User;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Direct.IDAL.User.Jurisdiction
{
    /// <summary>
    /// 会员注册仓储接口层
    /// </summary>
   public interface IRegisterRepository:IAbsRepository
    {
        #region 插入用户注册信息--郭文昊--2018年8月19日04:54:21
        /// <summary>
        /// 插入用户注册信息
        /// </summary>
        /// <param name="model"></param>
        /// <param name="hsTable"></param>
        void InsertRegisterMessage(UserInforMationDetails model, ref Hashtable hsTable);
        #endregion
        /// <summary>
        /// 查询级别信息
        /// </summary>
        /// <returns></returns>
        IList<MemberLevel> QueryMemberLevel();
        /// <summary>
        /// 查询一条级别
        /// </summary>
        /// <param name="levelId"></param>
        /// <returns></returns>
        MemberLevel QueryLevel(int levelId);
        /// <summary>
        /// 判断会员编号是否存在
        /// </summary>
        /// <param name="usercode"></param>
        /// <returns></returns>
        bool CheckUserCode(string usercode);
        /// <summary>
        /// 判断服务中心是否存在
        /// </summary>
        /// <param name="centercode"></param>
        /// <returns></returns>
        bool CheckServiceCenter(string centercode);
        /// <summary>
        /// 判断接点人/推荐人是否存在
        /// </summary>
        /// <param name="ContactCode"></param>
        /// <returns></returns>
        bool ChekConcat(string ContactCode);
        /// <summary>
        /// 判断点位上是否有会员
        /// </summary>
        /// <param name="contactCode"></param>
        /// <param name="area"></param>
        /// <returns></returns>

        bool CheckPoint(string contactCode, int area);
        /// <summary>
        /// 首次推荐放在左区
        /// </summary>
        /// <param name="usercode"></param>
        /// <param name="area"></param>
        /// <returns></returns>
        bool CheckFirstArea(string usercode, int area);
        /// <summary>
        /// 查询用户信息
        /// </summary>
        /// <param name="UserCode"></param>
        /// <returns></returns>
        UserInforMationDetails GetInfo(string UserCode);
    }
}
